from chapter04.demo06 import Date


class User:
    def __init__(self, birthday):
        self.__birthday = birthday

    def get_age(self):
        return 2022 - self.__birthday.year


if __name__ == '__main__':
    user = User(Date(1999,9,9))
    print(user.__birthday)
    print(user.get_age())